import QtQml 2.0
import QtQuick 2.9
import TaoQuick 1.0
import "./Pane"

CusBackground {
    id: rootBackground
    width: 800
    height: 600
    CusResizeBorder {
        id: resizeBorder
        visible: Qt.platform.os !== "windows"
        borderWidth: 2
        enabled: visible
        anchors.fill: rootBackground
        // control: view
    }

    TitlePane {
        id: title
        width: parent.width
        height: 50
    }
    Item {
        id: content
        width: parent.width - resizeBorder.borderWidth * 2
        x: resizeBorder.borderWidth
        anchors {
            top: title.bottom
            bottom: parent.bottom
            bottomMargin: resizeBorder.borderWidth
        }
        Rectangle {
            width: parent.width
            height: parent.height
            color: "lightgreen"
            console.log(width);

        }
        CusButton {
            width: 120
            height: 36
            anchors.centerIn: parent
            text: "Hello"
        }
    }
}


